package com.mv.springmvc.service.impl;
import java.util.List;

import com.mv.spring.bean.Component;
import com.mv.springmvc.dao.UserDao;
import com.mv.springmvc.dao.impl.UserDaoImpl;
import com.mv.springmvc.pojo.User;
import com.mv.springmvc.service.UserService;

@Component
public class UserServiceImpl implements UserService {
	
	public UserDao userDao = new UserDaoImpl();
	
	@Override
	public List<User> list(){
		System.out.println("UserServiceImpl start " + this.toString());
		return userDao.list();
	}
	
    @Override
    public String toString() {
    	System.out.println("##########UserServiceImpl Object toString");
    	return super.toString();
    }	
}
